package com.ftf.tp.user.infrastructure.converter;

import com.ftf.tp.user.domain.data.dos.TpUserDO;
import com.ftf.tp.user.infrastructure.mapper.po.TpUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author tanghao
 * @date 2022/8/1
 */
@Mapper
public interface TpUserConverter {

    TpUserConverter INSTANCE = Mappers.getMapper(TpUserConverter.class);


    TpUserDO convert(TpUser tpUser);

    TpUser convert(TpUserDO userDO);
}
